package services;

import java.io.File;
import java.io.IOException;

import org.xml.sax.SAXException;

import http.ParserConfig;

public class ConfigService {
	private static ConfigService instance = null;
	private ConfigService() {
	}
	public static ConfigService getInstance() {
		if (instance == null)
			instance = new ConfigService();
		return instance;
	}
	public void setConfigFile(File configFile) {
		try {
			ParserConfig.getInstance().load(configFile);
		} catch (SAXException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
